import request from '@/utils/request'

// 查询业务启停配置列表
export function listBusinessSwitch(query) {
  return request({
    url: '/kmwlpts/businessSwitch/list',
    method: 'get',
    params: query
  })
}

// 查询业务启停配置详细
export function getBusinessSwitch(id) {
  return request({
    url: '/kmwlpts/businessSwitch/' + id,
    method: 'get'
  })
}

// 新增业务启停配置
export function addBusinessSwitch(data) {
  return request({
    url: '/kmwlpts/businessSwitch',
    method: 'post',
    data: data
  })
}

// 修改业务启停配置
export function updateBusinessSwitch(data) {
  return request({
    url: '/kmwlpts/businessSwitch',
    method: 'put',
    data: data
  })
}

// 删除业务启停配置
export function delBusinessSwitch(id) {
  return request({
    url: '/kmwlpts/businessSwitch/' + id,
    method: 'delete'
  })
}

// 导出业务启停配置
export function exportBusinessSwitch(query) {
  return request({
    url: '/kmwlpts/businessSwitch/export',
    method: 'get',
    params: query
  })
}